import { Behaviour, HitTestScript, core } from "../gameengine";
import { marshal, MarshalTestState } from "../Marshal";

export class LandingBehaviour extends Behaviour {
    
    protected onStart() {
        console.log('已经打开了LandingPage213123')
        this.displayObject.getScript(HitTestScript).onClick = ()=>{
            console.log('点击了开始游戏按钮')
            marshal.changeState(new MarshalTestState());
            
        }
    }    
    
    protected onUpdate(advancedTime: number) {
    
    }


}